﻿using System;
using Server;
using Server.Gumps;
using Server.Commands;
using Server.Items;
using Server.Mobiles;

namespace Server.Gumps
{
    public class StatoGump : Gump
    {
        public static void Initialize()
        {
            CommandSystem.Register("stato", AccessLevel.Player, new CommandEventHandler(StatoGump_OnCommand));
        }

        private static void StatoGump_OnCommand(CommandEventArgs e)
        {
            e.Mobile.SendGump(new StatoGump(e.Mobile as PlayerMobile));
        }

        public StatoGump(PlayerMobile player)
            : base(0, 0)
        {
            this.Closable = true;
            this.Disposable = true;
            this.Dragable = true;
            this.Resizable = false;
            this.AddPage(0);
            this.AddImage(0, 0, 9390);
            this.AddImage(113, 0, 9391);
            this.AddImage(170, 0, 9392);
            this.AddImage(170, 140, 9395);
            this.AddImage(170, 182, 9395);
            this.AddImage(170, 224, 9395);
            this.AddImage(170, 265, 9395);
            this.AddImage(0, 140, 9393);
            this.AddImage(0, 181, 9393);
            this.AddImage(0, 222, 9393);
            this.AddImage(0, 263, 9393);
            this.AddImage(114, 140, 9394);
            this.AddImage(113, 180, 9394);
            this.AddImage(114, 222, 9394);
            this.AddImage(113, 264, 9394);
            this.AddImage(169, 305, 9398);
            this.AddImage(0, 305, 9396);
            this.AddImage(-35, 23, 10440);
            this.AddImage(113, 305, 9397);
            this.AddImage(48, 41, 1123);
            this.AddLabel(70, 38, 0x480, @"Stato Del Personaggio");
            this.AddLabel(43, 73, 0x480, @"Nome: "+player.Name);
            this.AddLabel(43, 93, 0x480, @"Titolo: "+player.Title);
            this.AddLabel(43, 113, 0x480, @"Sesso: "+player.Sesso);
            this.AddLabel(43, 133, 0x480, @"Razza: "+player.Razza);
            this.AddLabel(43, 153, 0x480, @"Divinita': "+player.Dio);
            this.AddLabel(43, 173, 0x480, @"Allineamento: "+player.Allineamento);
            this.AddLabel(43, 193, 0x480, @"Cittadinanza: "+player.Regno);
            this.AddImage(16, 66, 96);
            this.AddImage(91, 66, 96);
            this.AddButton(26, 337, 2104, 2103, (int)Buttons.CaratteristicheBt, GumpButtonType.Reply, 0);
            this.AddLabel(45, 332, 0x480, @"Caratteristiche");
            this.AddLabel(45, 365, 0x480, @"Info Difese");
            this.AddImage(238, 31, 10410);
            this.AddImage(237, 181, 10411);
            this.AddImage(236, 337, 10412);
            this.AddLabel(43, 213, 0x480, @"Classe: "+player.Classe);
            this.AddLabel(43, 253, 0x480, @"Livello: "+player.Livello);
            this.AddLabel(43, 273, 0x480, @"Esperienza: XXXXX");
            this.AddLabel(43, 293, 0x480, @"Bilancio Soldi: XXXXX");
            this.AddButton(26, 370, 2104, 2103, (int)Buttons.InfoDifeseBt, GumpButtonType.Reply, 0);
            this.AddButton(139, 369, 2104, 2103, (int)Buttons.AbilitaBt, GumpButtonType.Reply, 0);
            this.AddLabel(157, 365, 0x480, @"Elenco Abilita'");

        }

        public enum Buttons
        {
            CaratteristicheBt,
            InfoDifeseBt,
            AbilitaBt,
        }

    }
}